package com.jjiang.bbmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjiang.bbmall.ware.vo.FareResponseVo;
import com.jjiang.common.utils.PageUtils;
import com.jjiang.bbmall.ware.entity.WareInfoEntity;

import java.util.Map;

/**
 * 仓库信息
 *
 * @author jingjiang
 * @email 1259029328@qq.com
 * @date 2019-10-08 09:59:40
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据收获地址计算运费
     *
     * @param addrId 收获地址ID
     * @return 运费
     */
    FareResponseVo getFare(Long addrId);
}

